<script setup lang="ts">
const props = defineProps({
  title: {
    type: String,
    default: '提交',
  },
  loading: {
    type: Boolean,
    default: false,
  },

})
const emit = defineEmits(['click'])
function handleClick() {
  emit('click')
}
</script>

<template>
  <div class="nut-address-list__bottom">
    <nut-button :loading="loading" block type="primary" @click="handleClick">
      {{ props.title }}
    </nut-button>
  </div>
</template>

<style scoped lang="scss">
.nut-address-list__bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  bottom: constant(safe-area-inset-bottom);
  bottom: env(safe-area-inset-bottom);
  left: 0;
  z-index: 100;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 18px 24px;
  background-color: #fff;
}

.nut-address-list__mask-bottom {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: transparent;
}
</style>
